package cn.bdqn.controller;

import cn.bdqn.pojo.Brand;
import cn.bdqn.service.BrandService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class BrandController {
    @Resource
    BrandService brandService;

    @ResponseBody
    @RequestMapping("/selectAll")
    public Object selectAll(){
        List<Brand> list = brandService.selectAll();
        return list;
    }


}
